package com.snapan.es.service;

import com.snapan.entity.FileHistory;

import java.util.List;
import java.util.Map;

public interface EsSearchService {
    /**
     * 多条件组合搜索（所有条件可选填）
     * @param userId 当前用户 ID（必选，用户隔离）
     * @param history 搜索条件（封装在 FileHistory 中，所有字段可选）
     * @return 带高亮的搜索结果
     */
    List<Map<String, Object>> multiConditionSearch(Long userId, FileHistory history);

    List<Map<String, Object>> getMatchContent(Long userId,FileHistory history);

    List<Map<String, Object>> multiConditionRecycleSearch(Long userId, FileHistory history);

    List<Map<String, Object>> getMatchContentRecycled(Long userId,FileHistory history);

    List<Map<String, Object>> multiConditionShareSearch(Long userId, FileHistory history);

    List<Map<String, Object>> getMatchContentShare(Long userId,FileHistory history);
}
